'''
Created on 12/12/2011

@author: nacho
'''
import unittest
from mmu import MMU
from assignationBestAdjustment import BestAdjustment
from memory import Memory
from program import Program
from assignation import Assignation

class Test(unittest.TestCase):

    def setUp(self):
        self.assig = Assignation(Memory(512), BestAdjustment())
        self.progr = Program([])

    def testBlocks(self):
        
        self.assertTrue(len(self.assig.getUnusedBlocks()) == 1)
        
        


if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()